﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PetaPoco;

namespace BrnMall.Manager.Domain.Promotion
{
    /// <summary>
    /// 团购活动
    /// </summary>
    [TableName("Promotion_GroupBuy")]
    public class GroupBuy
    {
        public int Id { get; set; }
        /// <summary>
        /// 店铺ID
        /// </summary>
        public int StoreId { get; set; } = 0;
        /// <summary>
        /// 拼团名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 拼团人数
        /// </summary>

        public int LimitBuyerCount { get; set; } = 0;
        /// <summary>
        /// 拼团限时
        /// </summary>
        public int LimitHour { get; set; } = 0;
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }=new DateTime(1900,1,1);
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }=new DateTime(1900,1,1);
        /// <summary>
        /// 每位用户可同时进行的团数
        /// </summary>
        public int LimitJoinCount { get; set; } = 0;
        /// <summary>
        /// 每位用户每次参团时可购买件数
        /// </summary>
        public int LimitBuyCount { get; set; } = 0;

        /// <summary>
        /// 0:开启，1：关闭
        /// </summary>
        public int Status { get; set; } = 0;


    }
}
